package cn.iocoder.yudao.module.wine.controller.admin.stockinfo.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 出入库信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class StockInfoPageReqVO extends PageParam {

    @Schema(description = "创建用户ID", example = "426")
    private Long userId;

    @Schema(description = "存放仓库ID（store表主键）", example = "16682")
    private Long storeId;

    @Schema(description = "操作类型：0--入库，1--出库", example = "2")
    private Integer operateType;

    @Schema(description = "供求信息ID", example = "29291")
    private Long infoId;

    @Schema(description = "信息名称", example = "王五")
    private String infoName;

    @Schema(description = "信息编码(无可不填)")
    private String infoSn;

    @Schema(description = "库存数量")
    private Integer infoNums;

    @Schema(description = "信息条码(扫码条码)")
    private String infoBn;

    @Schema(description = "信息备注")
    private String infoDesc;

    @Schema(description = "出库状态：0--新建出/入库单，1--允许出/入库，2--拒绝出/入库", example = "1")
    private Integer infoStatus;

    @Schema(description = "添加方式：0--手动出/入库，1--扫码导出/入，2--批量导出/入", example = "1")
    private Integer addType;

    @Schema(description = "扫描方式：0--正常扫描，1--重复扫描", example = "2")
    private Integer scanStatus;

    @Schema(description = "关联订单编号(出库)", example = "26743")
    private Long orderId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
